Repository navigation
Add SPM-mediated PKCS#11 and TPM 2.0 interfaces - #76
Merged
dgarske merged 20 commits intoOct 26, 2026
Merged
Conversation
aidangarske
force-pushed
the
pkcs11-tpm-interfaces
branch
from
October 17, 2026 15:52
69881ae to
f234a26
Compare
dgarske
requested changes
Oct 23, 2026
dgarske
left a comment
Member
There was a problem hiding this comment.
This is a big PR. Any way to trim/reduce?
| @@ -0,0 +1,235 @@ | |||
| #include <stdarg.h> | |||
Member
There was a problem hiding this comment.
Missing our standard license header. Other .c's too.
Execute TPM commands synchronously and complete PKCS11 requests without a worker or polling. Remove the extra provider firmware builds and retain native/HSM selection inside the existing Secure partitions. Share stateless crypto code while keeping callback, RNG, initialization and PIN policy state private.
dgarske
approved these changes
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR to wolfTrust-dev2 aarc64 PR #29
wolfTrust originally had limited PKCS #11 support, but it was removed while the PSA interfaces were being completed because that integration was not ready. Now that the PSA path is stable, this PR brings PKCS #11 back and adds an isolated firmware TPM 2.0 service. Applications can keep using PSA, or use the new paths for PKCS #11 operations backed by the TPM and direct TPM 2.0 command traffic.
C_*calls and TPM 2.0 commands without using the PSA Crypto API.SERVICE_PKCS11relay between applications and an isolated wolfPKCS11 provider backed by wolfHSM.SERVICE_TPMmailbox between applications and an isolated volatile firmware TPM provider.